package com.my.xadmin.security.entity;

import com.my.framework.base.entity.IdLongEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "tb_config")
public class Config extends IdLongEntity
{  

	/** key值. */
    @Length(max = 64)
    @Column(length = 64,name="config_key")
    private String key;
    
    /** value值. */
    @Length(max = 1024)
    @Column(length = 1024,name="config_value")
    private String value;
    
    /** 有效状态. */
    @Length(max = 1)
    @Column(length = 1,name="config_status")
    private String status;
    
    /** 最后更新时间. */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "updatetime")
    private Date updatetime;
    
    /** 描述. */
    @Length(max = 256)
    @Column(length = 256)
    private String description;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
